package com.admin.control.web;

import com.admin.persistence.sys.entity.CommonParam;
import com.admin.service.SysCommonParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller("commonParamPush")
@RequestMapping("/commonParamPush")
public class CommonParamPushController {

    @Autowired
    private SysCommonParamService sysCommonParamService;

    public boolean pushCommonParam(List<CommonParam> commonParams){
       return sysCommonParamService.saveBatch(commonParams);
    }
}
